package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @FileName: HospitalRepository
 * @Author Steven
 * @Date: 2021/3/18
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String>{
    /**
     * 获取医院
     * @param hosCode
     * @return
     */
    Hospital getHospitalByHoscode(String hosCode);

    List<Hospital> getByHosnameLike(String hosName);
}
